{extend name="public/base" /}
    {block name="css"}
    <!-- Select2 -->
    <link rel="stylesheet" href="__ADMINLTE__plugins/select2/select2.min.css">
    {/block}
  {block name="content"}
    <div class="content-wrapper">
      <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            添加模板
            <small>Add Template</small>
          </h1>
        </section>

        <!-- Main content -->
        <section class="content">

          <!-- SELECT2 EXAMPLE -->
          <div class="box box-default">
            <div class="box-header with-border">
              <h3 class="box-title">模板信息</h3>
              <div class="box-tools pull-right">
                <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-remove"></i></button>
              </div>
            </div><!-- /.box-header -->
            <!-- form start -->
            <form role="form" action="{:U('Template/postAdd')}" method="post">
            <div class="box-body">
              <div class="row">
                <div class="col-md-6">
                  <div class="form-group">
                    <label>模板类型</label>
                    <select name='type_id' class="form-control select2" style="width: 100%;">
                      <option value="1" selected="selected">文章</option>
                      <option value="2">产品</option>
                      <option value="3">单页</option>
                    </select>
                  </div><!-- /.form-group -->
                  <div class="form-group">
                    <label for="exampleInputEmail1">模板名称</label>
                    <input name='temp_name' type="text" class="form-control" id="exampleInputEmail1" placeholder="输入模板名称">
                  </div>
                </div><!-- /.col -->
              </div><!-- /.row -->
            </div><!-- /.box-body -->
            <div class="box-footer">
              <button type="submit" class="btn btn-primary">添加</button>
            </div>
            </form>
          </div><!-- /.box -->

        </section>
		  <!-- Main content END-->
    </div>
  {/block}
{block name="js"}
    <!-- Select2 -->
    <script src="__ADMINLTE__plugins/select2/select2.full.min.js"></script>
    <script>
        //Initialize Select2 Elements
        $(".select2").select2();
    </script>
{/block}